$(function (){
    // 重点客户轮播
    var swiper = new Swiper('.swiper-container', {
        effect: 'coverflow',
        grabCursor: true,
        slidesPerView: 2,
        centeredSlides: true,
        paginationClickable: true,
        spaceBetween: 0,
        loop: true,
        loopAdditionalSlides: 1,
        autoplay : 3000,
        autoplayDisableOnInteraction : false,
        nextButton: '.swiper-button-next',
        prevButton: '.swiper-button-prev',
        coverflow: {
            rotate: 0,
            stretch: 46,
            depth: 500,
            modifier: 1,
            slideShadows : false
        },
        breakpoints: {
            768: {
                slidesPerView: 1
            }
        },
    });

    $('.swiper-button-prev').hover(function () {
        $('.swiper-slide-prev').addClass('hover');
    },function () {
        $('.swiper-slide-prev').removeClass('hover');
    })
    $('.swiper-button-next').hover(function () {
        $('.swiper-slide-next').addClass('hover');
    },function () {
        $('.swiper-slide-next').removeClass('hover');
    })

});